import { ShaderConfig } from "../constant/shader.const"
import AdaptiveRawShaderMaterial from "../material/AdaptiveRawShaderMaterial"
export default class ChunkMaterial extends AdaptiveRawShaderMaterial {
  capabilities: any
  constructor(e, t, s) {
    const r = {}
    for (const e of t) r[e] = !0
    super({
      extensions: { derivatives: !0 },
      fragmentShader: ShaderConfig.modelChunk.fragmentShader,
      vertexShader: ShaderConfig.modelChunk.vertexShader,
      uniforms: s,
      name: e,
      defines: r
    })
    this.capabilities = t
  }
}
